var express = require('express');
var router = express.Router();
const {addCarRent,getCarRent,delCarData,getCarById,loadImg,updateCarRent}=require('../controllers/car');

//添加合同
router.post('/', addCarRent);
router.get('/', getCarRent);
router.get('/:_id',getCarById);
router.delete('/',delCarData);
router.post('/uploadImages',loadImg);
router.put('/',updateCarRent);
module.exports = router;